<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>CSS3新增属性</title>
    <style>
        p:nth-of-type(1){
            text-shadow:0 30px 10px red,0 60px 5px green;
        }
        div:nth-of-type(1){
            width:120px;
            background:red;
            margin-top:100px;
            word-wrap: break-word;
        }
        div:nth-of-type(2){
            width:120px;
            background:green;
            margin-top:100px;
            word-break:break-all;
        }
        div:nth-of-type(3){
            width:120px;
            background:green;
            margin-top:100px;
            word-break:keep-all;
        }
        @font-face{
            font-family:f1;
            src:url(fonts/font1.ttf),url(fonts/font1.eot);
        }
        p:nth-of-type(2){
            font-family: f1;
        }
    </style>
</head>
<body>
    <p>你好世界</p>
    <div>hello world dhajkdhjakshdjkashdjkashkjhasdhjkdahjsd haha</div>
    <div>hello world dhajkdhjakshdjkashdjkashkjhasdhjkdahjsd haha</div>
    <div>helloworlddhajk-dhjakshdj kashdjkashkjhasdhjkdahjsd haha</div>
    <p>
        hello world
    </p>
</body>
</html>
